package cn.edu.gdu.quizpractice.dao;

import cn.edu.gdu.quizpractice.entity.ExamTime;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.time.LocalDate;
import java.util.List;

/**
 * @Author: Aubery
 * @Date: 2025-04-17-13:44
 * @Description:
 */
@Mapper
public interface ExamTimeDao {
    @Insert("insert into t_examtime(exam_date) values(#{examDate})")
    int insertExamTime(ExamTime examTime);

    @Select("select * from t_examtime where year = #{examYear}")
    ExamTime findExamTimeByYear(Integer examYear);

    @Select("select * from t_examtime")
    List<ExamTime> findAllExamTime();
}
